import React from 'react';
import { Navlink, Link, Outlet } from 'react-router-dom'
import About from './About.jsx'
import Home from './Home.jsx'


function RouterDemo(props) {
  return (
    <div className="routerPage">
      <div>
        <Link to='About'>About</Link>
        <Link to='Home'>Home</Link>
      </div>
      <div className="pageCon">
           <Outlet/>
      </div>
    </div>
  );
}

export default RouterDemo;
